﻿using MyUtility.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace AutoDeployForSims.Utility
{
    public static class GUIOpt
    {

        public static bool UpdataViewDocument(UserControl userControl)
        {

            MainWindow mainWin = Application.Current.MainWindow as MainWindow;
            //删除
            mainWin.MainControlSp.Children.Clear();
            //添加
            mainWin.MainControlSp.Children.Add(userControl);

            return true;
        }
        
    }
}
